code aaon and aaoff to disable/enable auto tile arranging